package com.heima.item.config;

import com.github.benmanes.caffeine.cache.Cache;
import com.github.benmanes.caffeine.cache.Caffeine;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Copyright (C), 2022-2022, 姚兵
 * Author: 32210
 * Date: 2022/10/7 17:03
 * FileName: CaffineConfig
 * Description:
 */

@Configuration
public class CaffineConfig {

    @Bean
    public Cache itemCache(){
        return Caffeine.newBuilder().build();
    }

    @Bean
    public Cache itemStockCache(){
        return Caffeine.newBuilder().build();
    }
}
